package rgbos.forum.domain;

import java.util.Comparator;


public class PostCompartor implements Comparator<Post>{

	@Override
	public int compare(Post o1, Post o2) {
		if (o1.getId_() < o2.getId_())
			return -1;
		else if (o1.getId_() > o2.getId_())
			return 1;
		else
			return 0;
	} 
}